package com.newer.his.paiban.service;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.newer.his.common.entity.Working;
import com.newer.his.common.mapper.WokingMapper;
import com.newer.his.common.util.DateUtil;

@Service
public class PaibanService {
	@Autowired
	WokingMapper wokingmapper;
	
	/**
	 * 给定一个 科室 和 日期返回  这个科室 日期开始七天后的排班记录
	 */
	
	public List<Working> GetWokingByDayService(Date date,int id_depy){
		
		return wokingmapper.getwokingByDay(DateUtil.RturnDate(date), id_depy);
	}

	
	
	public Object PutWokingByservice( Working working) {
		
		return wokingmapper.putwokingByDay(working);
	}
	
	
}
